package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NAsphaltDataWeight;
import com.ruoyi.zhgd.domain.bo.NAsphaltDataWeightBo;
import com.ruoyi.zhgd.domain.vo.NAsphaltDataWeightVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.domain.vo.NAsphaltProduceWeightVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 沥青拌合站数据Mapper接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface NAsphaltDataWeightMapper extends BaseMapperPlus<NAsphaltDataWeightMapper, NAsphaltDataWeight, NAsphaltDataWeightVo> {

    /**
     * 生产数据监控重量分页
     * @param build
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NAsphaltDataWeightVo> page(Page<Object> build, @Param("params") NAsphaltDataWeightBo bo);

    /**
     * 生产数据监控重量列表
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    List<NAsphaltDataWeightVo> weightList(@Param("params") NAsphaltDataWeightBo bo);
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    List<NAsphaltDataWeightVo> weightListTotal(@Param("params") NAsphaltDataWeightBo bo);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NAsphaltProduceWeightVo> produceWeight(@Param("params") NAsphaltDataWeightBo bo, Page<Object> build);

    NAsphaltDataWeightVo getById(@Param("id") String id);
}
